import perm
i = perm.Permission()
#i.read("I:\\EasyPerm\\test.yml")
'''
# print(i.WhatGroup("1846913566"))
i.AddPermNode("test", "test.test")
i.AddGroup("admin", "admin")
#i.DelGroup(NodeName="group.admin")
i.GivePermToGroup("test.*", "admin")
print(i.DoHaveParm("test.test", "1846913566"))
#print(i.IsInGroup("admin", "1846913566"))
#print(i.GivePermToUser("3tusk.3\\*k", "1846913566"))
print(i.GetGroupPerm("admin"))
'''
#i.dump("I:\\EasyPerm\\test.yml")
i.ReadFile("I:\\EasyPerm\\test.yml")
#i.FileInstaller()
#print(i.DelGroup("group.test"))
#print(i.DelNode('node.test'))
print(i.GetAllParent('default'))
print(i.GetGroupPerm('default'))
i.CheckObject()
i.DumpFile("I:\\EasyPerm\\test.yml")